package cn.gbase.jiangsu.data.transfer.bean;

import java.math.BigDecimal;
import java.util.Date;

import lombok.Data;

import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Readonly;
import org.nutz.dao.entity.annotation.Table;

/**
* 
*/
@Data
@Table("order_supplier_view")
public class OrderSupplierView implements java.io.Serializable {
	private static final long serialVersionUID = 5454155825314635342L;

	//columns START
	/**
	 * è®¢å•å­è¡¨ID       db_column: id 
	 */
	@Column("id")
	private Integer id;
	/**
	 * 商品属性，如颜色等.
	 */
	@Column("product_field_value")
	@Readonly
	private String productFieldValue;

	public String getProductFieldValue() {
		return productFieldValue;
	}

	public void setProductFieldValue(String productFieldValue) {
		this.productFieldValue = productFieldValue;
	}

	/**
	 * è®¢å•ä¸»è¡¨ID       db_column: order_id 
	 */
	@Column("order_id")
	private Integer orderId;
	/**
	 * å•†å“ID       db_column: product_id 
	 */
	@Column("product_id")
	private Integer productId;
	/**
	 * å•†å“ID       db_column: product_id 
	 */
	@Column("product_name")
	private String productName;
	/**
	 * å•†å“ID       db_column: product_id 
	 */
	@Column("product_pic1")
	private String productPic;
	/**
	 * è®¢å•æ—¶é—´       db_column: create_time 
	 */
	@Column("actual_arrive_date")
	private Date actualArriveDate;

	@Column("create_time")
	private Date createTime;

	@Column("stock_number")
	private Integer stockNumber;
	/**
	 * å•†å“æ•°é‡       db_column: product_count 
	 */
	@Column("product_count")
	private Integer productCount;
	/**
	 * å•ä»·       db_column: sell_price 
	 */
	@Column("sell_price")
	private BigDecimal sellPrice;
	/**
	 * 供应商的单价       db_column: supplier_price 
	 */
	@Column("supplier_price")
	private BigDecimal supplierPrice;
	/**
	 * è®¢å•å·       db_column: code 
	 */
	@Column("code")
	private String code;
	/**
	 * 0待付款，1已付款，2已发货，3已完成，4已取消       db_column: status 
	 */
	@Column("status")
	private String status;
	/**
	 * ä¸šä¸»è´¦å·       db_column: user_id 
	 */
	@Column("user_id")
	private Integer userId;
	/**
	 * ä¾›åº”å•†ID       db_column: supplier_id 
	 */
	@Column("supplier_id")
	private Integer supplierId;
	/**
	 * coAddress       db_column: coAddress 
	 */
	@Column("coAddress")
	private String coAddress;

	//订单地址
	@Column("address")
	private String address;

	//columns END
	@Column("treeId")
	private Integer treeId;

	@Column("post_type")
	private Integer postType;

	@Column("pay_type")
	private Integer payType;

	@Column("sum_price")
	private BigDecimal sumPrice;

	@Column("share_percent")
	private int sharePercent;

	@Column("order_type")
	private Integer orderType;

	@Column("show_flag")
	private Integer showFlag;

	@Column("building_id")
	private Integer buildingId;

	@Column("community_id")
	private Integer communityId;

	@Column("sumcount")
	private Integer sumcount;

	@Column("virtual_flag")
	private int virtualFlag;

	@Column("reserve_flag")
	private int reserveFlag;

	@Column("delivery_price")
	private BigDecimal deliveryPrice;

	@Column("discount_price")
	private BigDecimal discountPrice;

	//服务站名称
	private String communityName;

	//每个商品的合计
	private BigDecimal zongjiEvery;

	private String showProductName;

	private ShopUsersGlasses sug;
}
